package com.example.server.service.admin;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.server.common.constant.Result;
import com.example.server.entity.Sword;

/**
 * @author china.fuyao@outlook.com
 * @date 2020-04-20 17:18
 */
public interface SwordService extends IService<Sword> {
    /**
     * 新增敏感词
     * @param sword
     * @param customerId
     * @return
     */
    Result addSword(String sword, Integer customerId);

    /**
     * 更新敏感词
     * @param swordId
     * @param sword
     * @param customerId
     * @return
     */
    Result updateSword(Integer swordId, String sword, Integer customerId);

    /**
     * 批量删除敏感词
     * @param swordIds
     * @param customerId
     * @return
     */
    Result batchDelSword(String swordIds, Integer customerId);

    /**
     * 敏感词列表
     * @param page
     * @param limit
     * @param sword
     * @param customerId
     * @return
     */
    Result swordList(Integer page, Integer limit, String sword, Integer customerId);
}
